package com.example.android_20190604_01;

import android.app.Activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class clicklistener implements View.OnClickListener {
    private Activity mactivity;
    private TextView textView;
    public clicklistener(Activity activity,TextView textView)
    {
        this.mactivity=activity;
        this.textView=textView;
    }
    @Override
    public void onClick(View v)
    {
        this.textView.setText("采用了外部类绑定的监听器");
    }

}
